export interface LoginRequestData {
  /** admin 或 editor */
  username: "admin" | "editor"
  /** 密码 */
  password: string
  /** 验证码 */
  captcha: string
}

export type CaptchaResponseData = ApiResponseData<{image_type:string, image:string}>

export type LoginResponseData = ApiResponseData<{ token: string }>
